package io.gitee.wminyu.day01;

import java.util.Scanner;

public class task03 {

    public static void main(String[] args){
        Scanner input = new  Scanner (System.in);
        System.out.println("请输入第一个点的横坐标x1=");
        double x1 = input.nextDouble();
        System.out.println("请输入第一个点的纵坐标y1=");
        double y1 = input.nextDouble();
        System.out.println("请输入第一个点的衡坐标x2=");
        double x2 = input.nextDouble();
        System.out.println("请输入第一个点的纵坐标y2=");
        double y2 = input.nextDouble();
        double distance = Math.sqrt(Math.pow(x1,2)+Math.pow(y1-y2,2));
        System.out.println(distance);
    }
}
